package com.qf.push.quartzjob.start;

import com.qf.push.quartzjob.scheduler.IdemDataScheduler;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author 30909
 * CommandLineRunner 的实现类，被修饰为spring组件
 * 这个组件就会直接参与springboot的启动，args及时springboot的启动参数
 * 换言之，只要springboot，启动 run就会运行
 */
@Component
public class StartIdemJob implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        IdemDataScheduler idemDataScheduler = new IdemDataScheduler();
        idemDataScheduler.schedulerJob();
    }
}
